Login     Sign up
bugs in groups module
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

according to my error log there are some bugs in the groups module. some variables have no value.

163 months ago
1
izhanjafry (@izhanjafry)
Join date: Dec 14th 2010
Community posts: 16
View Profile
Send Message

i think u should remove or exclude the code in the modules for the moment till they fix the problem..

find in /modules/groups/groups.php and put //

[code]@jcow_mail($_POST['email'], 'You Group was created!', $welcome_email);[/code]

163 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

[quote=izhanjafry]i think u should remove or exclude the code in the modules for the moment till they fix the problem..

find in /modules/groups/groups.php and put //

[code]@jcow_mail($_POST['email'], 'You Group was created!', $welcome_email);[/code] [/quote]

ok you can change this

[code]
$welcome_email = 'Group name: '.h($_POST['name']).'<br />
URL: <a href="'.url('group/'.$_POST['guri']).'">'.url('group/'.$_POST['guri']).'</a>';

            @jcow_mail($_POST['email'], 'You Group was created!', $welcome_email);
            redirecting( url('group/'.$_POST['guri']) ,'Group successfully created','auto');

[/code]

to

[code]
$welcome_email = t('Group name: ').h($_POST['name']).'<br />
URL: <a href="'.url('group/'.$_POST['guri']).'">'.url('group/'.$_POST['guri']).'</a>';

            @jcow_mail($_Client['email'], t('Your group was created!'), $welcome_email);
            redirecting( url('group/'.$_POST['guri']) ,t('Group successfully created'),'auto');

[/code]

$_POST['email'] doesn't exist and some lines cannot be translated in the original code and i think 'Your group sounds better than 'You Group'

163 months ago
1
izhanjafry (@izhanjafry)
Join date: Dec 14th 2010
Community posts: 16
View Profile
Send Message

thank you very much for the code

163 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

same thing in inc/joinnow.php

$_POST['email'] --> $client['email']

163 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

and $_POST['nickname'] --> $client['username'] (or $client['fullname']

163 months ago